{extend name="base"}
{block name="title"}渠道开服查询{/block}
{block name="head"}
<style>
    .border-table{font-size:12px; color:#666;}
    .border-table tbody th{text-align:center;}
</style>
{/block}
{block name="body"}
<body class="mainbody">
<form>
    <!--导航栏-->
    <div class="location">
        <a href="javascript:history.back(-1);" class="back"><i class="iconfont icon-up"></i><span>返回上一页</span></a>
        <a href="{:url('index/home')}" class="home"><i class="iconfont icon-home"></i><span>首页</span></a>
        <i class="arrow iconfont icon-arrow-right"></i>
        <span>渠道开服查询</span>
    </div>
    <!--/导航栏-->

    <!--工具栏-->
    <div id="floatHead" class="toolbar-wrap">
        <div class="toolbar">
            <div class="box-wrap">
                <a class="menu-btn"><i class="iconfont icon-more"></i></a>
                <div class="l-list">
                    <div class="menu-list">
                        <div class="rule-single-select">
                            <select name="channel" style="display:none">
                                <option value="-1">===所有渠道===</option>
                                {volist name="CHANNELS" id='val'}
                                <option value="{$key}"{eq name="channel" value="$key"} selected{/eq}>[{$key}]{$val.Name}</option>
                                {/volist}
                            </select>
                        </div>
                        <div class="rule-single-select">
                            <select name="kind" style="display:none">
                                <option value="-1">===所有游戏===</option>
                                {volist name="GAME_KIND" id="val"}
                                <option value="{$key}"{eq name="kind" value="$key"} selected{/eq}>[{$key}]{$val}</option>
                                {/volist}
                            </select>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--/工具栏-->

    <div class="table-container">
        <table class="border-table">
            <tr>
                <th>&nbsp;</th>
                <th colspan="2">渠道</th>
                <th colspan="5">服务</th>
                <th colspan="4">游戏</th>
                <th colspan="3">赠送房卡数</th>
                <th rowspan="2">排序</th>
                <th rowspan="2">创建时间/更新时间</th>
            </tr>
            <tr>
                <th>#</th>
                <th>ID</th>
                <th>名称</th>
                <th>ID</th>
                <th>名称</th>
                <th>端口</th>
                <th>等级</th>
                <th>前缀</th>
                <th>ID</th>
                <th>名称</th>
                <th>版本号</th>
                <th>连接数</th>
                <th>绑定代理</th>
                <th>注册游戏</th>
                <th>分享游戏</th>
            </tr>
            {empty name="list"}
            <tr><td colspan="17">Oh~暂无数据!</td></tr>
            {else/}
            {volist name="list" id="v"}
            <tr data="{$v.ID}">
                <td>{$v.ROW_NUMBER}</td>
                <td>{$v.Channel}</td>
                <td>{$CHANNELS[$v.Channel]['Name'] ?? '--'}</td>
                <td>{$v.ServerID}</td>
                <td>{$v.ServerName}</td>
                <td>{$v.ServerPort}</td>
                <td>{$v.ServerLevel}</td>
                <td>{$v.Prefix}</td>
                <td>{$v.KindID}</td>
                <td>{$GAME_KIND[$v.KindID] ?? '--'}</td>
                <td>{$v.Version}</td>
                <td>{$v.Total}</td>
                <td>{$v.ZBind*1}</td>
                <td>{$v.ZReg*1}</td>
                <td>{$v.ZShare*1}</td>
                <td>{$v.SortID}</td>
                <td>{$v.CreateTime}<br/>{$v.UpdateTime}</td>
            </tr>
            {/volist}
            {/empty}
        </table>
    </div>

    <!--内容底部-->
    <div class="page-footer"><div class="btn-wrap">{$list->render()}</div></div>
    <!--/内容底部-->

</form>
</body>
{/block}